package com.mymall.service;

import com.mymall.common.ServerResponse;
import com.mymall.pojo.Category;

import java.util.List;

/**
 * Created by Chengxiang on 2018/8/31.
 */
public interface ICategoryService {

    ServerResponse addCategory(String categoryName, Integer parentId);

    ServerResponse updateCategoryName(Integer categoryId, String categoryName);

    ServerResponse<List<Category>> getChildrenParallelCatogory(Integer categoryId);

    ServerResponse getCategoryAndDeepChildrenCategory(Integer categoryId);
}
